﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Entity;
using System.Data;

namespace DataAccess.IService
{
    public interface IAccountService
    {

        /************************************************************************/
        /* 前台                                                                     */
        /************************************************************************/

        void delUserByID(String stuId);
        void update(Student student);
        void updatePassword(String stuId, String password);
        Student exist(String stuId, String password);
        Student getStudentByIdCardNum(String idCard);
        string[] getStudentObjectId(String stuId);
        bool updateEmail(Student stu, string txtMail);

        /************************************************************************/
        /* 后台                                                                     */
        /************************************************************************/
        SysAdmin validateAdmin(String studentId, String password);

        DataTable getStudentTable();

        bool insertStudent(Student student);


        Student getStudentInform(String stuId);
        #region
        bool selectAuthority(int role, string authName);
        DataSet selectAuthorityDS();
        bool deleteRole(int roleId);
        List<bool> selectRoleInfor(string roleName);
        bool updateRoleAuthority(List<bool> authoritys, String roleName);
        bool insertRole(List<bool> authoritys, String roleName);

        #endregion

        #region
        bool addOperator(Operator oper);
        DataSet selectOperatorDataSet();
        bool deleteOperator(int id);
        Operator selectOperator(int operatorId);
        bool updateOperator(int operatorId, Operator oper);
        #endregion
    }
}
